package model.command;
import controller.KeyListeners.KeyListenerSet;
import model.playable.RallyPoint;
/**
 *
 * @author joseph
 */
public class DropOffWorkers extends RallyPointCommand{
    public DropOffWorkers(RallyPoint rallyPoint){
        super(rallyPoint);
    }
    @Override
    public Command clone() {
        return new DropOffWorkers(getRallyPoint());
    }
    @Override
    public void executeCommand() {
        ((MoveWorkerable)getRallyPoint()).dropOffWorkers(getNumWorkers());
    }
    @Override
    public String toString(){
        return "Drop Off Workers";
    }
}
